package com.yu.subject.infra.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yu.subject.infra.basic.entity.SubjectInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 路亚
 * @version 0.1
 * @className SubjectInfoDao
 * @description
 * @date 2024/12/24 21:12
 * @since jdk11
 */
@Mapper
public interface SubjectInfoDao extends BaseMapper<SubjectInfo> {

    void add(SubjectInfo subjectInfo);

    Integer countByCondition(@Param("subjectInfo") SubjectInfo subjectInfo,
                             @Param("categoryId") Long categoryId,
                             @Param("labelId") Long labelId);

    List<SubjectInfo> queryPage(@Param("subjectInfo") SubjectInfo subjectInfo,
                                @Param("categoryId") Long categoryId,
                                @Param("labelId") Long labelId,
                                @Param("start") Integer start,
                                @Param("pageSize") Integer pageSize);
}
